package com.itdaan.portal.business.domain;

import java.util.Date;
import java.util.List;
/**
 * @author www.itdaan.com
 */
public class User implements java.io.Serializable {
	private static final long serialVersionUID = 456440238984758560L;

	/* 用户来源：站内注册 */
	public static final int SOURCE_DN = 0;
	/* 用户来源：新浪微博 */
	public static final int SOURCE_SINA = 1;
	/* 用户来源：qq登陆 */
	public static final int SOURCE_QQ = 2;
	
	/** 用户状态：已删除 */
	public static final int STATUS_DELETE = 3;
	
	private int id;
	private String username;
	private String password;
	private String name;
	private String avatar;
	private String uid;
	private int source;
	private int status;
	private Date updateDate;
	
	private String repeatPassword;// 重复输入的密码，用于验证密码正确性
	
	private List<String> roles;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public List<String> getRoles() {
		return roles;
	}

	public void setRoles(List<String> roles) {
		this.roles = roles;
	}

	public String getRepeatPassword() {
		return repeatPassword;
	}

	public void setRepeatPassword(String repeatPassword) {
		this.repeatPassword = repeatPassword;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getSource() {
		return source;
	}

	public void setSource(int source) {
		this.source = source;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	
	
}
